package com.kuang.controller;

import com.kuang.service.StudentService;
import com.kuang.vo.DataVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName HelloController
 * @Description TODO
 * @Author Augenestern_QXL
 * @Version 1.0
 */
@Controller
public class HelloController {


    @Autowired
    private StudentService studentService;


    @RequestMapping("/index")
    public String index(){
        return "index";
    }

    @RequestMapping("/list")
    @ResponseBody
    public DataVO list() {
        return studentService.findData();
    }

}
